package com.itheima.equals;

import java.util.Scanner;

public class Demo6equals {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入手机号:");
        String tel = sc.nextLine();
        String satrt = tel.substring(0,7);
        String end = tel.substring(tel.length()-4);
        System.out.println(satrt + "*****" + end);
    }
}
